package org.gy.T12;

import org.gy.T12.fu.Animal;
import org.gy.T12.zi.Dog;

public class Test {
    public static void main(String[] args) {
// ⽬标：掌握抽象类的使⽤场景和好处.
        Animal a = new Dog();
        a.cry(); //这时执⾏的是Dog类的cry⽅法
    }
}
